/**
 * 
 */
package edu.ucr.cs.dblab.acestore.base.index;

import java.io.IOException;
import java.nio.ByteBuffer;

/**
 * @author jarod
 * @created Jan 11, 2011
 */
public interface IIndexPageHelper {
	
	public void reset(ByteBuffer page) throws IOException;
	
	public int getPageType();
	
	public int getRecordCount() throws IOException;
	
	public ByteBuffer search(int recID) throws IOException;
	
	public int search(byte[] key, int[] keyFields) throws IOException;
	
	public int insert(byte[] data) throws IOException;
	
	public void update(byte[] data, int recID) throws IOException;
	
	public void delete(int recID) throws IOException;
	
	public int getNextPage() throws IOException;
	
}
